import axios from '@/api/index'
// 地址列表
function getListAction (data) {
  return axios({
    url: '/address/getListAction',
    method: 'GET',
    data
  })
}

function deleteAction (data) {
  return axios({
    url: '/address/deleteAction',
    method: 'GET',
    data
  })
}

// 保存地址
function saveAction (data) {
  return axios({
    url: '/address/saveAction',
    method: 'POST',
    data
  })
}
// 获取地址详情
function detailAction (data) {
  return axios({
    url: '/address/detailAction',
    method: 'GET',
    data
  })
}

// 收藏
function listAction (data) {
  return axios({
    url: '/collect/listAction',
    method: 'GET',
    data
  })
}

export { getListAction, deleteAction, saveAction, detailAction, listAction }
